﻿package mortal.game.view.autoFight
{
    import Message.Public.*;
    import com.mui.containers.globalVariable.*;
    import com.mui.controls.*;
    import com.mui.display.*;
    import com.mui.utils.*;
    import extend.language.*;
    import fl.controls.*;
    import fl.data.*;
    import flash.display.*;
    import flash.events.*;
    import flash.utils.*;
    import mortal.common.*;
    import mortal.component.gconst.*;
    import mortal.component.window.*;
    import mortal.game.cache.*;
    import mortal.game.events.*;
    import mortal.game.mvc.*;
    import mortal.game.resource.*;
    import mortal.game.scene3D.ai.ais.*;
    import mortal.game.view.autoFight.render.*;
    import mortal.game.view.common.*;
    import mortal.game.view.systemSetting.*;
    import mortal.mvc.core.*;
    import mortal.mvc.interfaces.*;

    public class AutoFightModule extends BaseWindow
    {
        private var _bg1:ScaleBitmap;
        private var _bg2:ScaleBitmap;
        private var _bg3:ScaleBitmap;
        private var _bg4:ScaleBitmap;
        private var _bg5:ScaleBitmap;
        private var _titleBg1:ScaleBitmap;
        private var _titleBg2:ScaleBitmap;
        private var _titleBg3:ScaleBitmap;
        private var _cbSelectBoss:GCheckBox;
        private var _cbTaskBoss:GCheckBox;
        private var _listBoss:GTileList;
        private var _cbMainSkill:GCheckBox;
        private var _cbbPlan:GComboBox;
        private var _listMainSkill:GTileList;
        private var _cbAssistSkill:GCheckBox;
        private var _listAssistSkill:GScrollPane;
        private var _assistContent:GSprite;
        private var _assits:Array;
        private var _cbWizardSkill:GCheckBox;
        private var _listWizardSkill:GScrollPane;
        private var _wizardContent:GSprite;
        private var _wizards:Array;
        private var _cbPickUpItem:GCheckBox;
        private var _txt1:GTextFiled;
        private var _txt2:GTextFiled;
        private var _cbPickUpEquip:GCheckBox;
        private var _boxQuality:GComboBox;
        private var _boxCareer:GComboBox;
        private var _cbPickUpDrug:GCheckBox;
        private var _cbAutoBuyCX:GCheckBox;
        private var _cbAutoRelive:GCheckBox;
        private var _cbAutoBuy:GCheckBox;
        private var _cbAutoAcceptTeam:GCheckBox;
        private var _btnAutoFight:GButton;
        private var _btnDefault:GButton;
        private var _btnSave:GButton;
        private var _needSave:Boolean = false;
        private var _cbbData:Array;
        private var _lastSaveTime:int;
        public static const boxQualityData:Array = [{name:EColor._EColorWhite, label:Language.getString(21254)}, {name:EColor._EColorGreen, label:Language.getString(21255)}, {name:EColor._EColorBlue, label:Language.getString(21256)}, {name:EColor._EColorPurple, label:Language.getString(21257)}, {name:EColor._EColorOrange, label:Language.getString(21258)}];
        public static const boxCareerData:Array = [{name:ECareer._ECareerNo, label:Language.getString(21259)}, {name:ECareer._ECareerWarrior, label:Language.getString(21260)}, {name:ECareer._ECareerMage, label:Language.getString(21261)}, {name:ECareer._ECareerArcher, label:Language.getString(21262)}];

        public function AutoFightModule(param1:ILayer = null)
        {
            this._assits = [];
            this._wizards = [];
            this._cbbData = [{name:0, label:Language.getString(20181)}, {name:1, label:Language.getString(20182)}];
            super(param1);
            this.setSize(690, 490);
            this.title = Language.getString(20193);
            this.titleHeight = 40;
            return;
        }// end function

        public function updateBossList(param1:DataProvider) : void
        {
            this._listBoss.dataProvider = param1;
            this._listBoss.drawNow();
            return;
        }// end function

        public function getPlanIndex() : int
        {
            return this._cbbPlan.selectedIndex;
        }// end function

        public function saveModuleDatas() : Boolean
        {
            var _loc_1:Boolean = false;
            if (this._cbSelectBoss.selected == ClientSetting.local.getIsDone(IsDoneType.SelectBoss))
            {
                _loc_1 = true;
                ClientSetting.local.setIsDone(!this._cbSelectBoss.selected, IsDoneType.SelectBoss);
            }
            if (this._cbTaskBoss.selected == ClientSetting.local.getIsDone(IsDoneType.SelectTaskBoss))
            {
                _loc_1 = true;
                ClientSetting.local.setIsDone(!this._cbTaskBoss.selected, IsDoneType.SelectTaskBoss);
            }
            if (this._cbMainSkill.selected == ClientSetting.local.getIsDone(IsDoneType.UseMainSkill))
            {
                _loc_1 = true;
                ClientSetting.local.setIsDone(!this._cbMainSkill.selected, IsDoneType.UseMainSkill);
            }
            if (this._cbAssistSkill.selected == ClientSetting.local.getIsDone(IsDoneType.UseAssistSkill))
            {
                _loc_1 = true;
                ClientSetting.local.setIsDone(!this._cbAssistSkill.selected, IsDoneType.UseAssistSkill);
            }
            if (this._cbWizardSkill.selected != ClientSetting.local.getIsDone(IsDoneType.UseWizardSkill))
            {
                _loc_1 = true;
                ClientSetting.local.setIsDone(this._cbWizardSkill.selected, IsDoneType.UseWizardSkill);
            }
            if (ClientSetting.local.getIsDone(IsDoneType.UseSecondSkillPlan) && this._cbbPlan.selectedIndex == 0)
            {
                _loc_1 = true;
                ClientSetting.local.setIsDone(false, IsDoneType.UseSecondSkillPlan);
            }
            else if (!ClientSetting.local.getIsDone(IsDoneType.UseSecondSkillPlan) && this._cbbPlan.selectedIndex == 1)
            {
                _loc_1 = true;
                ClientSetting.local.setIsDone(true, IsDoneType.UseSecondSkillPlan);
            }
            if (this._cbPickUpItem.selected == ClientSetting.local.getIsDone(IsDoneType.PickUpItem))
            {
                _loc_1 = true;
                ClientSetting.local.setIsDone(!this._cbPickUpItem.selected, IsDoneType.PickUpItem);
            }
            if (this._cbPickUpEquip.selected == ClientSetting.local.getIsDone(IsDoneType.PickUpEquip))
            {
                _loc_1 = true;
                ClientSetting.local.setIsDone(!this._cbPickUpEquip.selected, IsDoneType.PickUpEquip);
            }
            if (this._cbPickUpDrug.selected == ClientSetting.local.getIsDone(IsDoneType.PickUpDrug))
            {
                _loc_1 = true;
                ClientSetting.local.setIsDone(!this._cbPickUpDrug.selected, IsDoneType.PickUpDrug);
            }
            if (this._cbAutoBuyCX.selected == ClientSetting.local.getIsDone(IsDoneType.AutoBuyCX))
            {
                _loc_1 = true;
                ClientSetting.local.setIsDone(!this._cbAutoBuyCX.selected, IsDoneType.AutoBuyCX);
            }
            if (this._cbAutoBuy.selected != ClientSetting.local.getIsDone(IsDoneType.AutoBuy))
            {
                _loc_1 = true;
                ClientSetting.local.setIsDone(this._cbAutoBuy.selected, IsDoneType.AutoBuy);
            }
            if (this._cbAutoRelive.selected != ClientSetting.local.getIsDone(IsDoneType.AutoRelieve))
            {
                _loc_1 = true;
                ClientSetting.local.setIsDone(this._cbAutoRelive.selected, IsDoneType.AutoRelieve);
            }
            if (this._cbAutoAcceptTeam && this._cbAutoAcceptTeam.selected == ClientSetting.local.getIsDone(IsDoneType.AutoAcceptTeam))
            {
                _loc_1 = true;
                ClientSetting.local.setIsDone(!this._cbAutoAcceptTeam.selected, IsDoneType.AutoAcceptTeam);
            }
            if (this._boxCareer.selectedIndex != ClientSetting.local.AutoFightCareerIndex)
            {
                _loc_1 = true;
                ClientSetting.local.AutoFightCareerIndex = this._boxCareer.selectedIndex;
            }
            if (this._boxQuality.selectedIndex != ClientSetting.local.AutoFightQualityIndex)
            {
                _loc_1 = true;
                ClientSetting.local.AutoFightQualityIndex = this._boxQuality.selectedIndex;
            }
            return _loc_1;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            super.createDisposedChildrenImpl();
            this._bg1 = UIFactory.bg(17, 46, 661, 90, this);
            this._bg2 = UIFactory.bg(17, 138, 330, 137, this);
            this._bg3 = UIFactory.bg(349, 138, 330, 137, this);
            this._bg4 = UIFactory.bg(17, 275, 330, 174, this);
            this._bg5 = UIFactory.bg(349, 275, 330, 174, this);
            this._titleBg1 = UIFactory.bg(this._bg1.x + 2, this._bg1.y + 2, this._bg1.width - 4, 24, this, ImagesConst.RegionTitleBg);
            this._titleBg2 = UIFactory.bg(this._bg2.x + 2, this._bg2.y + 2, this._bg2.width - 4, 24, this, ImagesConst.RegionTitleBg);
            this._titleBg3 = UIFactory.bg(this._bg3.x + 2, this._bg3.y + 2, this._bg3.width - 4, 24, this, ImagesConst.RegionTitleBg);
            this._cbSelectBoss = this.createCheckBox(Language.getString(20171), 28, 47, 120, 28, this);
            this._cbTaskBoss = this.createCheckBox(Language.getString(20172), 131, 47, 120, 28, this);
            this._listBoss = UIFactory.tileList(28, 70, 648, 62, this);
            this._listBoss.setStyle("cellRenderer", SelectBossRender);
            this._listBoss.columnWidth = 125;
            this._listBoss.rowHeight = 23;
            this._listBoss.direction = GBoxDirection.VERTICAL;
            this._cbMainSkill = this.createCheckBox(Language.getString(20173), this._titleBg2.x + 8, (this._titleBg2.y - 1), 120, 28, this);
            this._cbbPlan = UIFactory.gComboBox(this._titleBg2.x + 211, this._titleBg2.y + 2, 110, 20, new DataProvider(this._cbbData), this);
            this._listMainSkill = UIFactory.tileList(this._bg2.x + 24, this._bg2.y + 30, 310, 105, this);
            this._listMainSkill.setStyle("cellRenderer", AFMainSkillRender);
            this._listMainSkill.columnWidth = 60;
            this._listMainSkill.rowHeight = 50;
            this._cbAssistSkill = this.createCheckBox(Language.getString(20174), this._titleBg3.x + 8, (this._titleBg3.y - 1), 120, 28, this);
            this._listAssistSkill = UIFactory.gScrollPanel(this._bg3.x + 14, this._bg3.y + 30, 312, 108, this);
            this._assistContent = UIFactory.getUICompoment(GSprite) as GSprite;
            this._listAssistSkill.styleName = "chatScrollPane";
            this._listAssistSkill.horizontalScrollPolicy = ScrollPolicy.OFF;
            this._listAssistSkill.verticalScrollPolicy = ScrollPolicy.AUTO;
            this._listAssistSkill.source = this._assistContent;
            this._cbWizardSkill = this.createCheckBox(Language.getString(21263), this._titleBg3.x + 8, (this._titleBg3.y - 1), 250, 28, this);
            this._cbWizardSkill.htmlLabel = Language.getString(21264);
            this._cbWizardSkill.configEventListener(Event.CHANGE, this.useWizardChanged);
            this._listWizardSkill = UIFactory.gScrollPanel(this._bg3.x + 14, this._bg3.y + 30, 312, 108, this);
            this._wizardContent = UIFactory.getUICompoment(GSprite) as GSprite;
            this._listWizardSkill.styleName = "chatScrollPane";
            this._listWizardSkill.horizontalScrollPolicy = ScrollPolicy.OFF;
            this._listWizardSkill.verticalScrollPolicy = ScrollPolicy.AUTO;
            this._listWizardSkill.source = this._wizardContent;
            this._btnAutoFight = UIFactory.gButton(Language.getString(20177), this._bg1.x + 365, this._bg1.y + 405, 80, 24, this);
            if (AutoFightAI.isWorking)
            {
                this._btnAutoFight.label = Language.getString(21265);
            }
            this._btnDefault = UIFactory.gButton(Language.getString(20175), this._bg1.x + 463, this._bg1.y + 405, 80, 24, this);
            this._btnSave = UIFactory.gButton(Language.getString(20176), this._bg1.x + 561, this._bg1.y + 405, 80, 24, this);
            this._cbPickUpItem = this.createCheckBox(Language.getString(21266), this._bg4.x + 10, this._bg4.y + 10, 120, 28, this);
            this._cbPickUpEquip = this.createCheckBox(Language.getString(21267), this._bg4.x + 10, this._bg4.y + 70, 120, 28, this);
            this._boxQuality = UIFactory.gComboBox(this._cbPickUpEquip.x + 100, this._cbPickUpEquip.y + 4, 104, 20, new DataProvider(boxQualityData), this);
            this._boxCareer = UIFactory.gComboBox(this._cbPickUpEquip.x + 208, this._cbPickUpEquip.y + 4, 80, 20, new DataProvider(boxCareerData), this);
            this._txt1 = UIFactory.gTextField(Language.getString(21268), this._boxQuality.x + 10, this._boxQuality.y - 18, 100, 20, this);
            this._txt2 = UIFactory.gTextField(Language.getString(21269), this._boxCareer.x + 25, this._boxCareer.y - 18, 100, 20, this);
            this._cbPickUpDrug = this.createCheckBox(Language.getString(21270), this._bg4.x + 10, this._bg4.y + 130, 120, 28, this);
            this._cbAutoBuyCX = this.createCheckBox(Language.getString(21271), this._bg5.x + 10, this._bg5.y + 10, 200, 28, this);
            this._cbAutoRelive = this.createCheckBox(Language.getString(21272), this._bg5.x + 10, this._bg5.y + 70, 120, 28, this);
            this._cbAutoBuy = this.createCheckBox(Language.getString(21273), this._bg5.x + 150, this._bg5.y + 70, 120, 28, this);
            if (Cache.instance.role.roleInfo.level >= 40)
            {
                this._cbAutoAcceptTeam = this.createCheckBox(Language.getString(21274), this._bg5.x + 10, this._bg5.y + 130, 120, 28, this);
            }
            this._cbbPlan.configEventListener(Event.CHANGE, this.fightPlanChangeHandler);
            this._btnAutoFight.configEventListener(MouseEvent.CLICK, this.autoFightHandler);
            this._btnDefault.configEventListener(MouseEvent.CLICK, this.defaultHandler);
            this._btnSave.configEventListener(MouseEvent.CLICK, this.saveHandler);
            this._cbPickUpEquip.configEventListener(Event.CHANGE, this.pickUpEquipChangeHandler);
            return;
        }// end function

        private function useWizardChanged(param1) : void
        {
            var _loc_3:AFWizardSkillRender = null;
            if (this._cbWizardSkill.selected)
            {
                ClientSetting.local.setIsDone(true, IsDoneType.UseWizardSkill);
            }
            else
            {
                ClientSetting.local.setIsDone(false, IsDoneType.UseWizardSkill);
            }
            GameController.skill.clearAutoUseXpTimer();
            var _loc_2:int = 0;
            while (_loc_2 < this._wizards.length)
            {
                
                _loc_3 = this._wizards[_loc_2];
                _loc_3.refreshMe();
                _loc_2++;
            }
            return;
        }// end function

        private function pickUpEquipChangeHandler(event:Event) : void
        {
            if (!this._cbPickUpEquip.selected)
            {
                this._boxCareer.mouseChildren = false;
                this._boxCareer.mouseEnabled = false;
                this._boxCareer.filters = [FilterConst.colorFilter];
                this._boxQuality.mouseEnabled = false;
                this._boxQuality.mouseChildren = false;
                this._boxQuality.filters = [FilterConst.colorFilter];
                this._txt1.filters = [FilterConst.colorFilter];
                this._txt2.filters = [FilterConst.colorFilter];
            }
            else
            {
                this._boxCareer.mouseChildren = true;
                this._boxCareer.mouseEnabled = true;
                this._boxCareer.filters = [];
                this._boxQuality.mouseChildren = true;
                this._boxQuality.mouseEnabled = true;
                this._boxQuality.filters = [];
                this._txt1.filters = [];
                this._txt2.filters = [];
            }
            return;
        }// end function

        public function updateAutoFightStatus(param1:Boolean) : void
        {
            if (param1)
            {
                this._btnAutoFight.label = Language.getString(21265);
            }
            else
            {
                this._btnAutoFight.label = Language.getString(20177);
            }
            return;
        }// end function

        private function autoFightHandler(event:MouseEvent) : void
        {
            if (this._btnAutoFight.label == Language.getString(20177))
            {
                Dispatcher.dispatchEvent(new DataEvent(EventName.AutoFight_A));
            }
            else
            {
                Dispatcher.dispatchEvent(new DataEvent(EventName.AutoFight_Stop));
            }
            return;
        }// end function

        private function defaultHandler(event:MouseEvent) : void
        {
            Dispatcher.dispatchEvent(new DataEvent(EventName.AutoFight_LoadDefault));
            return;
        }// end function

        private function saveHandler(event:MouseEvent) : void
        {
            var _loc_2:* = getTimer();
            if (_loc_2 - this._lastSaveTime < 2000)
            {
                return;
            }
            this._lastSaveTime = _loc_2;
            Dispatcher.dispatchEvent(new DataEvent(EventName.AutoFight_Save));
            return;
        }// end function

        public function updateMainSkillList(param1:DataProvider) : void
        {
            this._listMainSkill.dataProvider = param1;
            this._listMainSkill.drawNow();
            return;
        }// end function

        public function updateAssistSkillList(param1:Array) : void
        {
            var _loc_3:AFAssistSkillRender = null;
            var _loc_2:int = 0;
            while (_loc_2 < param1.length)
            {
                
                _loc_3 = this.getAssistItem(_loc_2);
                _loc_3.x = _loc_2 % 2 * 151;
                _loc_3.y = int(_loc_2 / 2) * 51;
                _loc_3.data = param1[_loc_2];
                if (_loc_3.parent == null)
                {
                    this._assistContent.addChild(_loc_3);
                }
                _loc_2++;
            }
            DisplayUtil.delNotUse(this._assits, _loc_2);
            this._listAssistSkill.drawNow();
            this._listAssistSkill.update();
            this._cbAssistSkill.visible = false;
            this._listAssistSkill.visible = false;
            this._assistContent.visible = false;
            return;
        }// end function

        public function updateWizardSkillList(param1:Array) : void
        {
            var _loc_2:int = 0;
            var _loc_3:AFWizardSkillRender = null;
            _loc_2 = 0;
            while (_loc_2 < param1.length)
            {
                
                _loc_3 = this.getWizardItem(_loc_2);
                _loc_3.x = _loc_2 % 6 * 50;
                _loc_3.y = int(_loc_2 / 6) * 51;
                _loc_3.data = param1[_loc_2];
                _loc_3.selectedCallback = this.reSelecteWizardSkill;
                if (_loc_3.parent == null)
                {
                    this._wizardContent.addChild(_loc_3);
                }
                _loc_2++;
            }
            DisplayUtil.delNotUse(this._wizards, _loc_2);
            this._listWizardSkill.drawNow();
            this._listWizardSkill.update();
            return;
        }// end function

        private function reSelecteWizardSkill() : void
        {
            var _loc_2:AFWizardSkillRender = null;
            var _loc_1:int = 0;
            while (_loc_1 < this._wizards.length)
            {
                
                _loc_2 = this._wizards[_loc_1];
                _loc_2.setSelected(false);
                _loc_1++;
            }
            return;
        }// end function

        private function getAssistItem(param1:int) : AFAssistSkillRender
        {
            var _loc_2:* = this._assits[param1];
            if (_loc_2 == null)
            {
                _loc_2 = UICompomentPool.getUICompoment(AFAssistSkillRender) as AFAssistSkillRender;
                this._assits[param1] = _loc_2;
            }
            return _loc_2;
        }// end function

        private function getWizardItem(param1:int) : AFWizardSkillRender
        {
            var _loc_2:* = this._wizards[param1];
            if (_loc_2 == null)
            {
                _loc_2 = UICompomentPool.getUICompoment(AFWizardSkillRender) as AFWizardSkillRender;
                this._wizards[param1] = _loc_2;
            }
            return _loc_2;
        }// end function

        private function fightPlanChangeHandler(event:Event) : void
        {
            Dispatcher.dispatchEvent(new DataEvent(EventName.AutoFight_PlanChange, this._cbbPlan.selectedIndex));
            return;
        }// end function

        protected function createCheckBox(param1:String, param2:int, param3:int, param4:int, param5:int, param6:DisplayObjectContainer) : GCheckBox
        {
            var _loc_7:* = UIFactory.checkBox(param1, param2, param3, param4, param5, param6);
            pushUIToDisposeVec(_loc_7);
            return _loc_7;
        }// end function

        override protected function addWindowCenter2() : void
        {
            return;
        }// end function

        public function updateSelected(param1:Boolean = false) : void
        {
            if (!param1)
            {
                this._cbSelectBoss.selected = !ClientSetting.local.getIsDone(IsDoneType.SelectBoss);
                this._cbTaskBoss.selected = !ClientSetting.local.getIsDone(IsDoneType.SelectTaskBoss);
                this._cbMainSkill.selected = !ClientSetting.local.getIsDone(IsDoneType.UseMainSkill);
                this._cbAssistSkill.selected = !ClientSetting.local.getIsDone(IsDoneType.UseAssistSkill);
                this._cbWizardSkill.selected = ClientSetting.local.getIsDone(IsDoneType.UseWizardSkill);
                if (ClientSetting.local.getIsDone(IsDoneType.UseSecondSkillPlan))
                {
                    this._cbbPlan.selectedIndex = 1;
                }
                else
                {
                    this._cbbPlan.selectedIndex = 0;
                }
                this._cbPickUpItem.selected = !ClientSetting.local.getIsDone(IsDoneType.PickUpItem);
                this._cbPickUpEquip.selected = !ClientSetting.local.getIsDone(IsDoneType.PickUpEquip);
                this._cbPickUpDrug.selected = !ClientSetting.local.getIsDone(IsDoneType.PickUpDrug);
                this._cbAutoBuyCX.selected = !ClientSetting.local.getIsDone(IsDoneType.AutoBuyCX);
                this._cbAutoBuy.selected = ClientSetting.local.getIsDone(IsDoneType.AutoBuy);
                this._cbAutoRelive.selected = ClientSetting.local.getIsDone(IsDoneType.AutoRelieve);
                if (this._cbAutoAcceptTeam)
                {
                    this._cbAutoAcceptTeam.selected = !ClientSetting.local.getIsDone(IsDoneType.AutoAcceptTeam);
                }
                this._boxCareer.selectedIndex = ClientSetting.local.AutoFightCareerIndex;
                this._boxQuality.selectedIndex = ClientSetting.local.AutoFightQualityIndex;
            }
            else
            {
                this._cbSelectBoss.selected = true;
                this._cbTaskBoss.selected = true;
                this._cbMainSkill.selected = true;
                this._cbAssistSkill.selected = true;
                this._cbWizardSkill.selected = true;
                this._cbbPlan.selectedIndex = 0;
                this._cbPickUpItem.selected = true;
                this._cbPickUpEquip.selected = true;
                this._cbPickUpDrug.selected = true;
                this._cbAutoBuyCX.selected = true;
                this._cbAutoBuy.selected = false;
                this._cbAutoRelive.selected = false;
                if (this._cbAutoAcceptTeam)
                {
                    this._cbAutoAcceptTeam.selected = true;
                }
                this._boxCareer.selectedIndex = 0;
                this._boxQuality.selectedIndex = 0;
            }
            this.pickUpEquipChangeHandler(null);
            return;
        }// end function

        private function selectedChangeHandler(event:Event) : void
        {
            var _loc_2:* = event.target as GCheckBox;
            if (_loc_2 == null)
            {
                return;
            }
            switch(_loc_2.label)
            {
                case Language.getString(20171):
                {
                    break;
                }
                case Language.getString(20172):
                {
                    break;
                }
                default:
                {
                    break;
                }
            }
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            super.disposeImpl(param1);
            this._bg1.dispose(param1);
            this._bg1 = null;
            this._bg2.dispose(param1);
            this._bg2 = null;
            this._bg3.dispose(param1);
            this._bg3 = null;
            this._bg4.dispose(param1);
            this._bg4 = null;
            this._bg5.dispose(param1);
            this._bg5 = null;
            this._titleBg1.dispose(param1);
            this._titleBg1 = null;
            this._titleBg2.dispose(param1);
            this._titleBg2 = null;
            this._titleBg3.dispose(param1);
            this._titleBg3 = null;
            this._cbSelectBoss = null;
            this._cbTaskBoss = null;
            this._listBoss.dispose(param1);
            this._listBoss = null;
            this._cbMainSkill = null;
            this._cbbPlan.dispose(param1);
            this._cbbPlan = null;
            this._listMainSkill.dispose(param1);
            this._listMainSkill = null;
            this._cbAssistSkill = null;
            this._listAssistSkill.dispose(param1);
            this._listAssistSkill = null;
            this._btnAutoFight.dispose(param1);
            this._btnAutoFight = null;
            this._btnDefault.dispose(param1);
            this._btnDefault = null;
            this._btnSave.dispose(param1);
            this._btnSave = null;
            this._cbWizardSkill = null;
            this._listWizardSkill.dispose(param1);
            this._listWizardSkill = null;
            this._wizardContent.dispose(param1);
            this._wizardContent = null;
            this._txt1.dispose(param1);
            this._txt1 = null;
            this._txt2.dispose(param1);
            this._txt2 = null;
            this._boxQuality.dispose(param1);
            this._boxQuality = null;
            this._boxCareer.dispose(param1);
            this._boxCareer = null;
            DisplayUtil.delNotUse(this._assits, 0);
            this._assits = [];
            DisplayUtil.delNotUse(this._wizards, 0);
            this._wizards = [];
            return;
        }// end function

    }
}
